<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<title th:text="#{i18n.text_121}"></title>
	<head th:replace="head"/>
	<style>
		.dashbord_content_outer{
			background-color: #fff;
		}
		.minertable-top{
			margin-top: 20px;
		}
	</style>
</head>
<body th:inline="text">
<nav th:replace="nav"/>
<section class="layout">
	<div class="horizontal-content">
		<div class="middle">
			<div class="md_top">
				<div th:replace="home/top"/>
			</div>
			<!-- new start -->
			<div class="dashbord_content_outer clearfix">
				<div class="db_content">
					<div class="minertable-top">
						<div style="float: left;">
							<select id="worker_active">
								<option value="all" th:text="#{i18n.text_44}"></option>
								<option value="active" selected="selected" th:text="#{i18n.text_148}"></option>
								<option value="inactive" th:text="#{i18n.text_149}"></option>
							</select>&nbsp;&nbsp;&nbsp;&nbsp;
							<span>[[#{i18n.text_150}]]: </span><span class="workerCount">0</span>
						</div>
						<div style="float: right; margin-right:20px; margin-top:-2px;">
							<input id="optsearch"  th:placeholder="#{i18n.text_151}" type="text" value=""/>
							<a id="searchBtn" class="search_img" href="#"></a>
						</div>
					</div>
					<div class="minertable" id="worker-content-new">
						<table>
							<tbody>
								<tr>
									<td width="140px" th:text="#{i18n.text_152}">
									</td>
									<td width="110px;">
										1[[#{i18n.text_153}]][[#{i18n.text_37}]](T/s)
									</td>
									<td width="110px;">
										5[[#{i18n.text_153}]][[#{i18n.text_37}]](T/s)
									</td>
									<td width="110px;">
										15[[#{i18n.text_153}]][[#{i18n.text_37}]](T/s)
									</td>
									<td width="110px;">
										1[[#{i18n.text_156}]]
									</td>
									<td width="110px;">
										1[[#{i18n.text_157}]]
									</td>
								</tr>
							</tbody>
						</table>
						<div class="mt_topfoot">
							<div class="btn-group pull-right pages-right">
								<ul class="pagination pageDiv">
								</ul>
							</div>
						</div>
					</div>
					<!-- new end -->
				</div>
			</div>
		</div>
	</div>

	<footer th:replace="footer"/>
</section>

<script th:src="@{/js/jquery.SuperSlide.js}"></script>
<script th:src="@{/js/home.min.js?v=20180323}"></script>
<script type="text/javascript">
	home.workers.init();
</script>

<script th:inline="javascript">
	var accountId = [[${accountId}]];
	if(accountId==null){
		$('#useridSetModal').modal();
		$('#userIdSave').bind('click', function(e) {
			var userIdIn=$('#userIdIn').val();
			$.ajax({
				type : "POST",
				url : "/user/addAccount",
				data : {name:userIdIn},
				success : function(data) {
					if(data.code=='200') {
						$('#useridSetModal').modal('hide');
						window.location.reload(true);
					} else {
						$('#dialog_msg').html(data.msg);
					}
				}
			});
		});
		document.onkeydown = function (event){
		　　if (event.keyCode==13){
			//回车键的键值为13
			$("#userIdSave").trigger("click");
		　　} 
	　　	};
	}
</script>

</body>
</html>